const { sign, verify } = require('jsonwebtoken');

const secret = 'jsonwebtoken';

exports.jwtSign = function(data) {
    return sign(data, secret);
}

exports.jwtVerify = function(data) {
    return verify(data, secret);
}